package com.example.leetcode;


import java.util.ArrayList;
import java.util.Collection;
import java.util.HashMap;
import java.util.List;

public class TWtestMap {
    public static void main(String[] args) {
        HashMap<Integer,Integer> map = new HashMap<>();
        map.put(0,1);
        map.put(1,3);
        map.put(2,12);
        map.put(3,4);
        List<Integer> list = new ArrayList<>();
        Collection ma= map.values();
        for (Object c:ma){
            list.add((Integer) c);
        }
   int num= list.stream().reduce(Integer::max).get();
        System.out.println(num);

        System.out.println(Math.abs(-1+2));
    }
}
